﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OOP.IOC.lib.Enums;

namespace OOP.IOC.lib.Attr
{
    [AttributeUsage(AttributeTargets.Class)]
    public class ComponentAttribute : Attribute
    {
        public LifeTime LifeTime { get; }
        public Type ServiceType { get; set; }
        public string Name { get; set; }

        public ComponentAttribute(LifeTime lifeTime = LifeTime.Singleton)
        {
            LifeTime = lifeTime;
        }
    }
}
